package easy;

public class offer03_数组中重复的数字 {
    public int findRepeatNumber(int[] nums) {
        boolean []booleans=new boolean[nums.length];
        for(int i:nums){
            if(!booleans[i]) {
                booleans[i]=true;
            }else {
                return i;
            }
        }
        return 0;
    }
}
